package main

import "fmt"

func main() {

	a := 9
	b := 10

	swapInt(&a, &b)
	fmt.Println(a, b)
}

func swapInt(a *int, b *int) {
	var temp int
	temp = *a
	*a = *b
	*b = temp
}
